package com.yicong.ants.bean.me;

import com.cchao.simplelib.util.StringHelper;
import com.yicong.ants.bean.base.BaseBean;
import com.yicong.ants.bean.common.PageInfoBean;
import com.yicong.ants.manager.BusinessHelper;

import java.util.List;

/**
 * 我的下线 分页列表
 *
 * @author cchao
 * @version 2020-2-4
 */
public class ChildrenResp extends BaseBean {
    public PageInfoBean pageInfo;
    public String total;
    public String mouth_count;
    public String year_count;
    private List<ItemBean> list;

    public ChildrenResp() {
    }

    public PageInfoBean getPageInfo() {
        return this.pageInfo;
    }

    public String getTotal() {
        return this.total;
    }

    public String getMouth_count() {
        return this.mouth_count;
    }

    public String getYear_count() {
        return this.year_count;
    }

    public List<ItemBean> getList() {
        return this.list;
    }

    public void setPageInfo(PageInfoBean pageInfo) {
        this.pageInfo = pageInfo;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public void setMouth_count(String mouth_count) {
        this.mouth_count = mouth_count;
    }

    public void setYear_count(String year_count) {
        this.year_count = year_count;
    }

    public void setList(List<ItemBean> list) {
        this.list = list;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof ChildrenResp)) return false;
        final ChildrenResp other = (ChildrenResp) o;
        if (!other.canEqual((Object) this)) return false;
        if (!super.equals(o)) return false;
        final Object this$pageInfo = this.getPageInfo();
        final Object other$pageInfo = other.getPageInfo();
        if (this$pageInfo == null ? other$pageInfo != null : !this$pageInfo.equals(other$pageInfo))
            return false;
        final Object this$total = this.getTotal();
        final Object other$total = other.getTotal();
        if (this$total == null ? other$total != null : !this$total.equals(other$total))
            return false;
        final Object this$mouth_count = this.getMouth_count();
        final Object other$mouth_count = other.getMouth_count();
        if (this$mouth_count == null ? other$mouth_count != null : !this$mouth_count.equals(other$mouth_count))
            return false;
        final Object this$year_count = this.getYear_count();
        final Object other$year_count = other.getYear_count();
        if (this$year_count == null ? other$year_count != null : !this$year_count.equals(other$year_count))
            return false;
        final Object this$list = this.getList();
        final Object other$list = other.getList();
        if (this$list == null ? other$list != null : !this$list.equals(other$list)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ChildrenResp;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final Object $pageInfo = this.getPageInfo();
        result = result * PRIME + ($pageInfo == null ? 43 : $pageInfo.hashCode());
        final Object $total = this.getTotal();
        result = result * PRIME + ($total == null ? 43 : $total.hashCode());
        final Object $mouth_count = this.getMouth_count();
        result = result * PRIME + ($mouth_count == null ? 43 : $mouth_count.hashCode());
        final Object $year_count = this.getYear_count();
        result = result * PRIME + ($year_count == null ? 43 : $year_count.hashCode());
        final Object $list = this.getList();
        result = result * PRIME + ($list == null ? 43 : $list.hashCode());
        return result;
    }

    public String toString() {
        return "ChildrenResp(pageInfo=" + this.getPageInfo() + ", total=" + this.getTotal() + ", mouth_count=" + this.getMouth_count() + ", year_count=" + this.getYear_count() + ", list=" + this.getList() + ")";
    }

    public static class ItemBean {
        String mobile;
        String avatar;
        String id_card_name;
        String id_card_name_mix;
        int auth_status;
        String create_time;
        String nickname;
        String contribution;
        String tribute_parent;
        String team_contribution;
        String team_children;
        String leave_task_text;
        String mobile_mix;
        String wx_account;
        String team_auth_amount;
        String level;
        int direct_children;

        public ItemBean() {
        }

        public String getMobile_mix() {
            return BusinessHelper.getMobileMix(mobile);
        }

        public String getId_card_name_mix() {
            if (StringHelper.isEmpty(id_card_name)) {
                return "";
            }
            if (id_card_name.length() <= 1) {
                return "*";
            }
            return "*" + id_card_name.substring(1);
        }

        public String getMobile() {
            return this.mobile;
        }

        public String getAvatar() {
            return this.avatar;
        }

        public String getId_card_name() {
            return this.id_card_name;
        }

        public int getAuth_status() {
            return this.auth_status;
        }

        public String getCreate_time() {
            return this.create_time;
        }

        public String getNickname() {
            return this.nickname;
        }

        public String getContribution() {
            return this.contribution;
        }

        public String getTribute_parent() {
            return this.tribute_parent;
        }

        public String getTeam_contribution() {
            return this.team_contribution;
        }

        public String getTeam_children() {
            return this.team_children;
        }

        public String getLeave_task_text() {
            return this.leave_task_text;
        }

        public String getWx_account() {
            return this.wx_account;
        }

        public String getTeam_auth_amount() {
            return this.team_auth_amount;
        }

        public String getLevel() {
            return this.level;
        }

        public int getDirect_children() {
            return this.direct_children;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public void setId_card_name(String id_card_name) {
            this.id_card_name = id_card_name;
        }

        public void setId_card_name_mix(String id_card_name_mix) {
            this.id_card_name_mix = id_card_name_mix;
        }

        public void setAuth_status(int auth_status) {
            this.auth_status = auth_status;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public void setContribution(String contribution) {
            this.contribution = contribution;
        }

        public void setTribute_parent(String tribute_parent) {
            this.tribute_parent = tribute_parent;
        }

        public void setTeam_contribution(String team_contribution) {
            this.team_contribution = team_contribution;
        }

        public void setTeam_children(String team_children) {
            this.team_children = team_children;
        }

        public void setLeave_task_text(String leave_task_text) {
            this.leave_task_text = leave_task_text;
        }

        public void setMobile_mix(String mobile_mix) {
            this.mobile_mix = mobile_mix;
        }

        public void setWx_account(String wx_account) {
            this.wx_account = wx_account;
        }

        public void setTeam_auth_amount(String team_auth_amount) {
            this.team_auth_amount = team_auth_amount;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public void setDirect_children(int direct_children) {
            this.direct_children = direct_children;
        }

        public boolean equals(final Object o) {
            if (o == this) return true;
            if (!(o instanceof ItemBean)) return false;
            final ItemBean other = (ItemBean) o;
            if (!other.canEqual((Object) this)) return false;
            final Object this$mobile = this.getMobile();
            final Object other$mobile = other.getMobile();
            if (this$mobile == null ? other$mobile != null : !this$mobile.equals(other$mobile))
                return false;
            final Object this$avatar = this.getAvatar();
            final Object other$avatar = other.getAvatar();
            if (this$avatar == null ? other$avatar != null : !this$avatar.equals(other$avatar))
                return false;
            final Object this$id_card_name = this.getId_card_name();
            final Object other$id_card_name = other.getId_card_name();
            if (this$id_card_name == null ? other$id_card_name != null : !this$id_card_name.equals(other$id_card_name))
                return false;
            final Object this$id_card_name_mix = this.getId_card_name_mix();
            final Object other$id_card_name_mix = other.getId_card_name_mix();
            if (this$id_card_name_mix == null ? other$id_card_name_mix != null : !this$id_card_name_mix.equals(other$id_card_name_mix))
                return false;
            if (this.getAuth_status() != other.getAuth_status()) return false;
            final Object this$create_time = this.getCreate_time();
            final Object other$create_time = other.getCreate_time();
            if (this$create_time == null ? other$create_time != null : !this$create_time.equals(other$create_time))
                return false;
            final Object this$nickname = this.getNickname();
            final Object other$nickname = other.getNickname();
            if (this$nickname == null ? other$nickname != null : !this$nickname.equals(other$nickname))
                return false;
            final Object this$contribution = this.getContribution();
            final Object other$contribution = other.getContribution();
            if (this$contribution == null ? other$contribution != null : !this$contribution.equals(other$contribution))
                return false;
            final Object this$tribute_parent = this.getTribute_parent();
            final Object other$tribute_parent = other.getTribute_parent();
            if (this$tribute_parent == null ? other$tribute_parent != null : !this$tribute_parent.equals(other$tribute_parent))
                return false;
            final Object this$team_contribution = this.getTeam_contribution();
            final Object other$team_contribution = other.getTeam_contribution();
            if (this$team_contribution == null ? other$team_contribution != null : !this$team_contribution.equals(other$team_contribution))
                return false;
            final Object this$team_children = this.getTeam_children();
            final Object other$team_children = other.getTeam_children();
            if (this$team_children == null ? other$team_children != null : !this$team_children.equals(other$team_children))
                return false;
            final Object this$leave_task_text = this.getLeave_task_text();
            final Object other$leave_task_text = other.getLeave_task_text();
            if (this$leave_task_text == null ? other$leave_task_text != null : !this$leave_task_text.equals(other$leave_task_text))
                return false;
            final Object this$mobile_mix = this.getMobile_mix();
            final Object other$mobile_mix = other.getMobile_mix();
            if (this$mobile_mix == null ? other$mobile_mix != null : !this$mobile_mix.equals(other$mobile_mix))
                return false;
            final Object this$wx_account = this.getWx_account();
            final Object other$wx_account = other.getWx_account();
            if (this$wx_account == null ? other$wx_account != null : !this$wx_account.equals(other$wx_account))
                return false;
            final Object this$team_auth_amount = this.getTeam_auth_amount();
            final Object other$team_auth_amount = other.getTeam_auth_amount();
            if (this$team_auth_amount == null ? other$team_auth_amount != null : !this$team_auth_amount.equals(other$team_auth_amount))
                return false;
            final Object this$level = this.getLevel();
            final Object other$level = other.getLevel();
            if (this$level == null ? other$level != null : !this$level.equals(other$level))
                return false;
            if (this.getDirect_children() != other.getDirect_children()) return false;
            return true;
        }

        protected boolean canEqual(final Object other) {
            return other instanceof ItemBean;
        }

        public int hashCode() {
            final int PRIME = 59;
            int result = 1;
            final Object $mobile = this.getMobile();
            result = result * PRIME + ($mobile == null ? 43 : $mobile.hashCode());
            final Object $avatar = this.getAvatar();
            result = result * PRIME + ($avatar == null ? 43 : $avatar.hashCode());
            final Object $id_card_name = this.getId_card_name();
            result = result * PRIME + ($id_card_name == null ? 43 : $id_card_name.hashCode());
            final Object $id_card_name_mix = this.getId_card_name_mix();
            result = result * PRIME + ($id_card_name_mix == null ? 43 : $id_card_name_mix.hashCode());
            result = result * PRIME + this.getAuth_status();
            final Object $create_time = this.getCreate_time();
            result = result * PRIME + ($create_time == null ? 43 : $create_time.hashCode());
            final Object $nickname = this.getNickname();
            result = result * PRIME + ($nickname == null ? 43 : $nickname.hashCode());
            final Object $contribution = this.getContribution();
            result = result * PRIME + ($contribution == null ? 43 : $contribution.hashCode());
            final Object $tribute_parent = this.getTribute_parent();
            result = result * PRIME + ($tribute_parent == null ? 43 : $tribute_parent.hashCode());
            final Object $team_contribution = this.getTeam_contribution();
            result = result * PRIME + ($team_contribution == null ? 43 : $team_contribution.hashCode());
            final Object $team_children = this.getTeam_children();
            result = result * PRIME + ($team_children == null ? 43 : $team_children.hashCode());
            final Object $leave_task_text = this.getLeave_task_text();
            result = result * PRIME + ($leave_task_text == null ? 43 : $leave_task_text.hashCode());
            final Object $mobile_mix = this.getMobile_mix();
            result = result * PRIME + ($mobile_mix == null ? 43 : $mobile_mix.hashCode());
            final Object $wx_account = this.getWx_account();
            result = result * PRIME + ($wx_account == null ? 43 : $wx_account.hashCode());
            final Object $team_auth_amount = this.getTeam_auth_amount();
            result = result * PRIME + ($team_auth_amount == null ? 43 : $team_auth_amount.hashCode());
            final Object $level = this.getLevel();
            result = result * PRIME + ($level == null ? 43 : $level.hashCode());
            result = result * PRIME + this.getDirect_children();
            return result;
        }

        public String toString() {
            return "ChildrenResp.ItemBean(mobile=" + this.getMobile() + ", avatar=" + this.getAvatar() + ", id_card_name=" + this.getId_card_name() + ", id_card_name_mix=" + this.getId_card_name_mix() + ", auth_status=" + this.getAuth_status() + ", create_time=" + this.getCreate_time() + ", nickname=" + this.getNickname() + ", contribution=" + this.getContribution() + ", tribute_parent=" + this.getTribute_parent() + ", team_contribution=" + this.getTeam_contribution() + ", team_children=" + this.getTeam_children() + ", leave_task_text=" + this.getLeave_task_text() + ", mobile_mix=" + this.getMobile_mix() + ", wx_account=" + this.getWx_account() + ", team_auth_amount=" + this.getTeam_auth_amount() + ", level=" + this.getLevel() + ", direct_children=" + this.getDirect_children() + ")";
        }
    }
}
